import os
import data_get
from data_save import data_save


#保存视频
def save_video(content):
    with open('video.avi','wb') as f:
        f.write(content)
        f.close()

def main():
    url = "https:\/\/vdept3.bdstatic.com\/mda-qiv8ym622q07hiyw\/sc\/cae_h264\/1727679996610150371\/mda-qiv8ym622q07hiyw.mp4?v_from_s=hkapp-haokan-hna&auth_key=1731304713-0-0-77e8a022aea0c678b3b503e70cc8273f&bcevod_channel=searchbox_feed&cr=2&cd=0&pd=1&pt=3&logid=3513541838&vid=4827889560488439349&abtest="
    content = data_get.get_content_no_headers(url)
    #保存视频
    data_save.save_content("video_ysx.mp4",content)

if __name__ == "__main__":
    main()
